<?php
$this->page_title = $this->translate ( 'Edit your profile' );?>

<div id="main_user" class="span-24 last main">
    <div class="span-18">
        <div class="section_user">
            <h2><?=$this->translate ( 'Edit your profile' );?></h2>

            <?php if (isset ( $this->error )) :    ?>
                    <div class="error"><h2>
                        <?=$this->escape ( $this->error );?>
                    </h2></div>    
            <?php endif;?>
            
            <div class="section_form">
                <form action="<?=$this->escape ( $this->form->getAction () )?>"
                    method="<?=$this->escape ( $this->form->getMethod () )?>">
                    <fieldset><legend><?=$this->translate ( 'Here you could change your user settings' );?></legend>
                        <?=$this->form?>
                    </fieldset>
                </form>
            </div>
        </div>
    </div>

    <div class="span-6 last">
        <?=$this->editprofile_tab ?>
        <div class="user_ads_icon">
           <?  if ($this->user['role'] == 2) {  ?> 
               <a class="user_ads" id="<?=(preg_match("/listuser/", $_SERVER['REQUEST_URI']))?"tab_active":"lala"?>" href="/<?=$this->lang ?>/ad/listorg/id/<?=$this->user['id'] ?>">
                    <img alt="<?=$this->translate('Ads') ?>" src="/images/icons/ico_user_ads.png" class="valign" /><div class="txt_valign"><?=$this->translate('Ads');?></div></a>
           <?php } else { ?>
                <a class="user_ads" id="<?=(preg_match("/listuser/", $_SERVER['REQUEST_URI']))?"tab_active":"lala"?>" href="/<?=$this->lang ?>/ad/listuser/id/<?=$this->user['id'] ?>">
                    <img alt="<?=$this->translate('Ads') ?>" src="/images/icons/ico_user_ads.png" class="valign" /><div class="txt_valign"><?=$this->translate('Ads');?></div></a>
        <?php } ?>  
        </div>
        <div class="clearer"></div>
        <div class="advertising">
            <!-- BEGIN PARTNER PROGRAM - DO NOT CHANGE THE PARAMETERS OF THE HYPERLINK -->
<script language="javascript" type="text/javascript" src="http://program.epartner.es/view.asp?ref=570686&site=8346&type=html&hnb=5&js=1"></script>
<noscript><a href="http://web.epartner.es/click.asp?ref=570686&site=8346&type=b1&bnb=1" target="_blank">
<img src="http://program.epartner.es/view.asp?ref=570686&site=8346&b=1" border="0"/></a><br /></noscript>
<!-- END PARTNER PROGRAM -->
        </div>
        </div>
</div> <!-- /main -->    